<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>维修工单</title>
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="./css/headersearch.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/customerservicelist.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <style>
        .topheader {
            height: auto;
            box-shadow: 0px 1px 5px 0px rgba(60, 128, 209, 0.12);
        }

        .topheader_search {
            width: 100%;
            height: 2.2rem;
            background-color: #fff;
            display: flex;
        }

        .new-aui-searchbar {
            width: 85%;
            /* float: left; */
        }

        .aui-searchbar-input-white {
            /* height: 1.6rem; */
            line-height: 1.6rem;
            margin: 0px 0.4rem 0px 0.8rem;
            background: #eee !important;
            box-shadow: none;
        }

        .selecticon {
            height: 2.2rem;
            line-height: 2.5rem;
            text-align: right;
            color: #289FFF;
            font-weight: 600;
            padding-right: 15px;
            margin-left: 10px;
        }

        .new-btn-bottom {
            width: 92%;
            margin: 0 auto;
            display: flex;
            margin-top: 30px;
            flex-direction: row;
            justify-content: center;
        }

        .new-blue-btn {
            width: 50%;
            text-align: center;
            margin: 0 5px;
            /* font-weight: bold; */
        }

        .aui-tab-item.active {
            color: #222;
            font-weight: 600;
        }

        .aui-tab-item.aui-active {
            box-shadow: none;
        }

        .menu_tapmode,
        span.menu_dotspan {
            color: #999;
        }

        .aui-tab-color {
            background-image: none !important;
        }

        .searchparam {
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            padding: 15px;
            background: #fff;
            border-radius: 0px 0px 14px 14px;
            z-index: 99;
            height: 50%;
            padding-top: 0;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <!-- 弹框黑色背景 -->
        <div v-on:click="doHideSearch()" v-if="show" class="maskbg">
        </div>
        <van-popup v-model="show" :overlay="false" position="top">
            <div class="search_area searchparam">
                <div class="part searchcontent">
                    <div class="searchparamtitle">
                        项目名称
                    </div>
                    <div class="searchparamitem">
                        <label v-on:click="doSelectProject(item.ID)"
                            v-bind:class="{'active':form.ProjectIDs.indexOf(item.ID)>-1}"
                            v-for="item in projectList">{{item.Name}}</label>
                    </div>
                    <div class="aui_bottom">
                        <div v-on:click="doReset(1)" class="aui_bottombtn left">重置</div>
                        <div v-on:click="do_search()" class="aui_bottombtn right">确认</div>
                    </div>
                </div>
            </div>
        </van-popup>
        <header class="topheader" id="aui-header">
            <div class="topheader_search">
                <div class="aui-searchbar new-aui-searchbar" id="search">
                    <div class="aui-searchbar-input aui-searchbar-input-white aui-border-radius">
                        <i class="icon iconfont icon-sousuo"></i>
                        <input v-model="form.keywords" type="search" placeholder="设备名称" id="search-input">
                        <div class="aui-searchbar-clear-btn" style="top:12px">
                            <i class="icon iconfont icon-guanbi"></i>
                        </div>
                    </div>
                    <div class="aui-searchbar-btn" tapmode></div>
                </div>
                <div v-on:click="do_open_search()" class="selecticon">筛选</div>
            </div>
            <div class="aui_tab_box" style="float: right;background-color: #fff;">
                <!-- -1-全部 0-处理中 1-已完工 4-待受理 5-待派单 10-待接单 50-已归档=已查验 -->
                <div class="aui-tab aui-tab-color" style="padding-bottom: 8px;">
                    <div v-on:click="select_status(1)" class="aui-tab-item menu_tapmode"
                        v-bind:class="{'aui-active':form.status==1}">
                        <label class="labelbox">
                            待派单
                            <span v-if="total.PublicCount>0" class="menu_dotspan">{{total.PublicCount}}</span>
                        </label>
                    </div>
                    <div v-on:click="select_status(2)" class="aui-tab-item menu_tapmode"
                        v-bind:class="{'aui-active':form.status==2}">
                        <label class="labelbox">
                            待接单
                            <span v-if="total.AcceptCount>0" class="menu_dotspan">{{total.AcceptCount}}</span>
                        </label>
                    </div>
                    <div v-on:click="select_status(3)" class="aui-tab-item menu_tapmode"
                        v-bind:class="{'aui-active':form.status==3}">
                        <label class="labelbox">
                            处理中
                            <span v-if="total.HandleCount>0" class="menu_dotspan">{{total.HandleCount}}</span>
                        </label>
                    </div>
                    <div v-on:click="select_status(4)" class="aui-tab-item menu_tapmode"
                        v-bind:class="{'aui-active':form.status==4}">
                        <label class="labelbox">
                            已完工
                            <span v-if="total.CompleteCount>0" class="menu_dotspan">{{total.CompleteCount}}</span>
                        </label>
                    </div>
                    <div v-on:click="select_status(5)" class="aui-tab-item menu_tapmode"
                        v-bind:class="{'aui-active':form.status==5}">
                        <label class="labelbox">
                            已查验
                            <span v-if="total.CheckCount>0" class="menu_dotspan">{{total.CheckCount}}</span>
                        </label>
                    </div>
                    <div class="cl">
                    </div>
                </div>
            </div>
        </header>
        <section id="main_refresh" class="aui-refresh-content" style="margin-top: 90px;">
            <div class="aui-content task" v-if="list.length>0">
                <div v-for="item in list" class=" boxarea mainbox">
                    <div v-on:click="openGongdan(item)" class="work_con_box">
                        <div class="workheader aui-margin-b-15">
                            <div class="work_title_add ellipsis_one fl" style="font-weight: bold;width: 60%;">
                                {{item.DeviceName}}</div>
                            <div v-if="item.Type==1" class="typestatus dsl" style="width: 60px;" >一般维修</div>
                            <div v-if="item.Type==2" class="typestatus yczs" style="width: 60px;">重大维修</div>
                        </div>
                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">所属项目：</div>
                            <div class="work_con_box_right">
                                <label>{{item.ProjectName}}</label>
                            </div>
                        </div>
                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">报修人：</div>
                            <div class="work_con_box_right">
                                <label>{{item.WriteUserName}}</label>
                            </div>
                        </div>
                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">报修时间：</div>
                            <div class="work_con_box_right">
                                <label>{{item.WriteDateDesc}}</label>
                            </div>
                        </div>
                        <div class="work_con_box_time marginheight">
                            <div class="work_con_box_left">问题描述：</div>
                            <div class="work_con_box_right">
                                <label
                                    style="overflow: hidden;text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;">{{item.ServiceContent}}</label>
                            </div>
                        </div>
                    </div>

                    <div class="new-btn-bottom" style="overflow: hidden;">
                        <div v-if="item.PublicBtn" class="work_beginbtnty3 new-blue-btn" v-on:click="do_open_chooseuser(item,1)">
                            <i class="icon iconfont icon-dingxiangpaidan" style=" font-size: 0.7rem; margin-right: 5px;"></i>派单
                        </div>
                        <div v-if="item.AcceptBtn" class="work_beginbtnty3 new-blue-btn" v-on:click="do_open_chooseuser(item,2)">
                            <i class="icon iconfont icon-dingxiangpaidan" style=" font-size: 0.7rem; margin-right: 5px;"></i>重派
                        </div>
                        <div v-if="item.AcceptBtn" class="work_beginbtnty3 new-blue-btn"
                            v-on:click="do_accpet(item)">
                            <i class="icon iconfont icon-shouli" style=" font-size: 0.7rem; margin-right: 5px;"></i>接单
                        </div>
                        <div v-if="item.HandleBtn" class="work_beginbtnty3 new-blue-btn" v-on:click="do_chuli(item)">
                            <i class="icon iconfont icon-11" style=" font-size: 0.7rem; margin-right: 5px;"></i>完工
                        </div>
                        <div  v-if="item.CheckBtn" class="work_beginbtnty3 new-blue-btn" v-on:click="do_complete(item)">
                            <i class="icon iconfont icon-shoulichenggongicon" style=" font-size: 0.7rem; margin-right: 5px;"></i>查验
                        </div>
                       
                    </div>
                </div>
                <div class="notodayList" v-if="!can_scroll">
                    别刷了，真的没有啦...
                </div>
            </div>
            <div class="noinfo" id="noorder" v-if="list.length==0&&!is_searching">
                <img src="../image/index/noinfomsg_icon.png" alt="" />
                <h5><br />暂无相关信息</h5>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript " src="../script/api.js"></script>
<script type="text/javascript " src="../script/vue.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-dialog.js"></script>
<script type="text/javascript" src="../script/aui-tab.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="../script/aui-popup.js"></script>
<script type="text/javascript " src="../script/vant/vue.js"></script>
<script type="text/javascript " src="../script/vant/vant.js"></script>
<script type="text/javascript " src="js/repairlist.js"></script>

</html>